package com.unc.allergyex.objects.db;

import java.util.ArrayList;

import com.unc.allergyex.helpers.ObjManager;

/**
 * This class represents the Menu Category database
 * object.  These objects should be created from 
 * the JSON restaurant/menu result string.
 * @author Phillip
 */
public class Category {
	String name;
	String id;
	String[] dishIds;
	
	public Category(String name, String id, String[] dishIds) {
		this.name = name;
		this.id = id;
		this.dishIds = dishIds;
	}

	public String getName() {
		return name;
	}

	public String getId() {
		return id;
	}
	
	public ArrayList<Dish> getDishes(){
		return ObjManager.getDishList(dishIds);
	}
}
